<table width="744" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="back1">&nbsp;</td>
    <td align="center" class="back2"><div class="droid" id="judul-bar">
        <?php echo $course['KODE_PELATIHAN']?>-<?php echo $course['ANGKATAN']?> | 
        <?php echo $course['NAMA_PELATIHAN']?></div></td>
    <td class="back3">&nbsp;</td>
  </tr>
  <tr>
    <td class="back4">&nbsp;</td>
    <td id="warnaback">
<div class="bingkai">
		<!-- mulai menu -->
        <div id="menuZ">
	    	<img src="<?php echo $this->session->userdata('foto') ?>"/>
        </div>
        <div id="menuX">
        	<div id="userX"> 
                    Hi, <b><?php echo $this->session->userdata('nama')?></b> | 
                    <a href="<?php echo base_url().'feedback_result/feedback_result_con/logout' ?>">Logout</a></div>
            <div class="clear"></div>
            <div class="menuY"><a href="<?php echo base_url() . 'feedback_result/feedback_result_con/start_home' ?>">Hasil SF</a> | </div>
            <div class="menuY"><a href="<?php echo base_url() . 'polling/polling_con/' ?>">Hasil Poll</a> | </div>
            <div class="menuY"><a href="#">Absen Peserta</a></div>
            <div class="clear"></div>
        </div>
        <!-- selesai menu -->
        <!-- mulai kontent -->
	  <div id="all">
        	<div id="overallscore" class="jeruk0" >Overall Score:</div>
            <div id="isikontentatas">
            	<div id="isikontentatas-kiri" class="jeruk1">
                    <table border="0" cellpadding="0" cellspacing="0" id="papan0" class="droid">
                      <tr>
                        <td id="overall1"><?php echo round($overal_score[0]);?></td>
                        </tr>
                      <tr>
                        <td id="overall2"><?php echo $overal_score[1];?></td>
                        </tr>
                      <tr>
                        <td><?php echo $overal_score[2];?></td>
                        </tr>
                    </table>
                </div>
            	<div id="isikontentatas-kanan">
                	<div id="score1" class="jeruk2">
                        <table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td class="kecil2">Clik on the number of session, for see the detail score of course</td>
                        </tr>
                        <tr>
                          <td>
                            <?php if($jum_sesi>0){
                                echo '
                                <table border="0" cellpadding="2" cellspacing="0" id="papan" class="droid">
                                <tr>
                                  <th>Sesi ke</th>
                                        ';
                                          for ($y=1;$y<=$jum_sesi;$y++){
                                              echo '
                                              <td class="tcenter ">';
                                                  if ($jumlah_overal[$y]!=0){
                                                      echo '<a href="'.base_url().'feedback_result/feedback_result_con/calculate_course/'.$course['KODE_PELATIHAN'].'/'.$course['ANGKATAN'].'/'.$y.'">'.$y.'</a>';
                                                  }else {
                                                      echo $y;
                                                  }
                                                  echo '</td>';

                                          }
                                          ;echo'
                                  <td class="tcenter2 ">&nbsp;</td>
                                </tr>
                                <tr>
                                  <th>Score</th>';
                                  for ($y=1;$y<=$jum_sesi;$y++){
                                      if ($jumlah_overal[$y]!=0){
                                          echo '
                                          <td class="tdkiri">'.round($overal_sesi[$y]).'</td>';
                                      }else{ echo '<td class="tdkiri">&nbsp</td>';}
                                  }
                                  ;echo'
                                  <td>&nbsp;</td>
                                </tr>
                              </table>
                              ';}
                              ?>
                          </td>
                        </tr>
                      </table>
                    </div>
                    <div id="score2" class="jeruk3">
                        <table border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td valign="top"><table border="0" cellpadding="0" cellspacing="0" id="papan2" class="droid">
                            <tr>
                              <?php if ($nilai_rata_materi_allsesi!=0){echo "<td>Materi</td>";} ?>
                              <?php if ($nilai_rata_instruktur_allsesi!=0){echo "<td>Instruktur</td>";} ?>
                              <?php if ($nilai_rata_asisten_allsesi!=0){echo "<td>Asisten</td>";} ?>
                            </tr>
                            <tr class="each">
                              <?php if ($nilai_rata_materi_allsesi!=0){echo "<td>".round($nilai_rata_materi_allsesi)."</td>";} ?>
                              <?php if ($nilai_rata_instruktur_allsesi!=0){echo "<td>".round($nilai_rata_instruktur_allsesi)."</td>";} ?>
                              <?php if ($nilai_rata_asisten_allsesi!=0){echo "<td>".round($nilai_rata_asisten_allsesi)."</td>";} ?>
                            </tr>
                            </table></td>
                          <td id="chart"><span id="grafik" class="inlinesparkline">
                                  <?php
                                  for ($q=1;$q<=$jum_sesi;$q++){
                                          if ($jumlah_overal[$q]!=0){
                                              echo $overal_sesi[$q];
                                          }
                                          if ($q<$jum_sesi){if ($jumlah_overal[$q+1]!=0){
                                              echo ",";
                                          }}

                                      }
                                          ?>
                              </span></td>
                          </tr>
                        </table>
                  </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <!---->
        <div id="sesi">
            <div id="kontentbawah1">
            		<table class="droid" id="persesi" width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td class="persesi">Sesi</td>
						</tr>
						<tr>
						  <td class="persesi2"><?php echo $cur_sesi ?></td>
						</tr>
					  </table>

            </div>
            <div id="kontentbawah2">
            <table  class="droid" border="0" cellpadding="0" cellspacing="0" id="isi1">
                    <?php
                    if ($jumlah_overal[$cur_sesi]!=0){
                    echo '
                    <tr>
                      <td valign="top" class="yoi yoi2">Overall</td>
                      <td valign="top" class="yoi3">'.$overal_sesi[$cur_sesi].'</td>
                    </tr>
                    <tr>
                      <td valign="top" class="yoi yoi2">Grade</td>
                      <td valign="top" class="yoi3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td class="yoi2">'.$grade.'</td>
                        </tr>
                        <tr>
                          <td class="kecil">'.$quote.'</td>
                        </tr>
                      </table></td>
                    </tr>';
                    }
                    ?>
                    <?php if ($jumlah_materi!=0){echo '
                        <tr>
                        <td valign="top" class="yoi yoi2">Materi</td>
                          <td valign="top" class="yoi3">'.$materi.'</td>
                        </tr>';}
                    ?>
                    <?php if (count($nama_instruktur)!=0) {echo "
                    <tr>
                      <td valign='top' class='yoi'>
                      <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                        <tr>
                          <td class='yoi2'>Instruktur</td>
                        </tr>
                        <tr>
                          <td class='kecil'>".$nama_instruktur[0]['NAMA']."</td>
                        </tr>
                      </table>
                      </td>
                      <td valign='top' class='yoi3'>".$nilai_instruktur."</td>
                    </tr>";} ?>
                    <?php for ($k=0;$k<$jumlah_asisten;$k++) {echo "
                    <tr>
                      <td valign='top' class='yoi'>
                      <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                        <tr>
                          <td class='yoi2'>Asisten-".($k+1)."</td>
                        </tr>
                        <tr>
                          <td class='kecil'>".$nilai_asisten[$k]['NAMA']."</td>
                        </tr>
                      </table>
                      </td>
                      <td valign='top' class='yoi3'>".$nilai_asisten[$k]['rata_asisten']."</td>
                    </tr>";} ?>
                    <?php if ($jumlah_like!=0){
                        
                    echo '
                    <tr>
                      <td valign="top" class="yoi yoi2">Likes</td>
                      <td valign="top" class="yoi3">'.$like.'%</td>
                    </tr>';
                    }
                    ?>
                    <?php if ($jumlah_peserta_kelas!=0){
                        echo'
                        <tr>
                          <td valign="top" class="yoi yoi2">Hadir</td>
                          <td valign="top" class="yoi3">'.$hadir.'%</td>
                        </tr>
                        ';
                    }
                    ?>
                  </table>

            </div>
            <div id="kontentbawah3">
                <?php
                    if ($jumlah_komentar!=0){
                    echo '
                        <table border="0" cellpadding="0" cellspacing="0" id="isi2">
                            <tr>
                              <td valign="top">
                                      <table  class="droid" border="0" cellpadding="0" cellspacing="0" id="isi3">
                                            <tr>
                                              <td valign="top" class="yoi yoi2">Komentar</td>
                                              <td valign="top" class="yoi4">'.$jumlah_komentar.'</td>
                                            </tr>
                                      </table>
                              </td>
                            </tr>
                            <tr>
                              <td valign="top">
                                      <table width="100%" border="0" cellpadding="0" cellspacing="0" id="komentar">
                                            ';
                                            for ($p=0;$p<count($komentar);$p++){
                                                if ($komentar[$p]['KOMENTAR']!=''){
                                                    echo '
                                                    <tr>
                                                      <td><span class="cen">'.$komentar[$p]['NAMA'].':</span>'.$komentar[$p]['KOMENTAR'].'</td>
                                                    </tr>
                                                    ';

                                                }
                                            }
                                            echo '
                                      </table>
                              </td>
                            </tr>

                        </table>';}
                    ?>
                <?php
                    if ($jumlah_tanggapan!=0){
                    echo '
                        <table border="0" cellpadding="0" cellspacing="0" id="isi2">
                            <tr>
                              <td valign="top">
                                      <table  class="droid" border="0" cellpadding="0" cellspacing="0" id="isi3">
                                            <tr>
                                              <td valign="top" class="yoi yoi2">Tanggapan</td>
                                              <td valign="top" class="yoi4">'.$jumlah_tanggapan.'</td>
                                            </tr>
                                      </table>
                              </td>
                            </tr>
                            <tr>
                              <td valign="top">
                                      <table width="100%" border="0" cellpadding="0" cellspacing="0" id="komentar">
                                            ';
                                            for ($p=0;$p<count($tanggapan);$p++){
                                                if ($tanggapan[$p]['KOMENTAR']!=''){
                                                    echo '
                                                    <tr>
                                                      <td><span class="cen">'.$tanggapan[$p]['NAMA'].': </span> '.$tanggapan[$p]['KOMENTAR'].'</td>
                                                    </tr>
                                                    ';

                                                }
                                            }
                                            echo '
                                      </table>
                              </td>
                            </tr>

                        </table>';}
                    ?>

            </div>
        <div class="clear"></div>
       	<div id="kontentbawah4">
                                                <form action="<?php echo base_url()?>feedback_result/feedback_result_con/tambah_komentar/<?php echo $course['KODE_PELATIHAN']?>/<?php echo $course['ANGKATAN']?>/<?php echo $cur_sesi?>/")" method="post" >
                    					<table id="opo" width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
								<tr>
								<td>
									<label for="textarea"></label>
									<textarea name="komentar" id="comment" class="clearField" cols="45" rows="5">Add Comment ...</textarea>
								</td>
								<td valign="top" align="left"><input type="submit" name="button" id="kirim" value="" /></td>
								</tr>
				  			</table>
                                                </form>
        </div>
       	<!-- selesai kontent -->
		<!----->
        <div id="footerX" class="">Copyright ©2011 CIC Team | Credits</div>
        </div>

</div>
	</td>
    <td class="back5">&nbsp;</td>
  </tr>
  <tr>
    <td class="back6">&nbsp;</td>
    <td class="back7">&nbsp;</td>
    <td class="back8">&nbsp;</td>
  </tr>
</table>